一時停止している Aurora MySQL からエラーログの取得が可能か教えてください

一時停止している Aurora MySQL からエラーログの取得が可能か教えてください

Clock Icon2024.08.13

困っていた内容

障害調査のために Aurora MySQL のエラーログを取得しようとしたところ、マネジメントコンソール上のログとイベントのタブにエラーログの表示がありません。一時停止している状態の Aurora MySQL はマネジメントコンソール上からログの取得ができないのでしょうか?
04
05

回答

ログとイベントのタブにエラーログの表示がある Aurora MySQL を停止したところ、マネジメントコンソール上からエラーログの表示が消えることを確認しました。一方で、Aurora MySQL を再開するとマネジメントコンソール上のログとイベントのタブにエラーログが再度表示されることも確認しています。

07
08
なお、Aurora MySQL を再開後にマネジメントコンソール上で取得可能となったエラーログは停止以前のログを保持しておらず、クラスター再開後のログのみを保持しています。

Aurora クラスター停止前のエラーログ 1 行目から
2024-08-09T01:00:07.020766Z 61 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' (sql_authentication.cc:4314)
2024-08-09T01:00:15.164011Z 62 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' (sql_authentication.cc:4314)
2024-08-09T01:00:30.146633Z 63 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' (sql_authentication.cc:4314)
Aurora クラスター再開後のエラーログ 1 行目から
2024-08-09T01:33:52.317898Z 0 [Warning] [MY-011070] [Server] '--ssl-fips-mode' is deprecated and will be removed in a future release. (mysqld.cc:6727)
2024-08-09T01:33:52.319854Z 0 [Warning] [MY-014067] [Server] Value for option 'ssl-cipher' contains cipher 'ECDH-ECDSA-AES128-GCM-SHA256' that is either blocked or deprecated (and will be removed in a future release). Please refer to the documentation for more details. (ssl_init_callback.cc:111)
2024-08-09T01:33:52.319878Z 0 [Warning] [MY-014067] [Server] Value for option 'ssl-cipher' contains cipher 'ECDH-RSA-AES128-SHA256' that is either blocked or deprecated (and will be removed in a future release). Please refer to the documentation for more details. (ssl_init_callback.cc:111)

停止を行う予定の Aurora MySQL クラスターにおいて永続的なログを取得されたい場合は、CloudWatch Logs へのログ出力をご検討ください。
https://repost.aws/ja/knowledge-center/rds-aurora-mysql-logs-cloudwatch

まとめ

この記事がどなたかのお役に立てば幸いです。

参考資料

この記事をシェアする

facebook logohatena logotwitter logo

© Classmethod, Inc. All rights reserved.